package com.example.demo.entity;

import com.example.demo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 动态
 *
 * @author 俊何
 * @since 2021-08-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Topic对象", description = "动态")
public class Topic extends BaseEntity {

  private static final long serialVersionUID = 1L;

  @ApiModelProperty(value = "内容")
  private String content;

  @ApiModelProperty(value = "用户id")
  private Integer userId;

  @ApiModelProperty(value = "（视频，图片）逗号隔开")
  private String files;

  @ApiModelProperty(value = "3级地址code")
  private String areaCode;

  @ApiModelProperty(value = "评论数")
  private Integer commentCount;

  @ApiModelProperty(value = " 置顶(需要实现排序功能） 0不置顶")
  private Integer sort;

  @ApiModelProperty(value = "是否展示")
  private Boolean isShow;

  @ApiModelProperty(value = "点赞用户的id英文,隔开的")
  private String upIds;

  @ApiModelProperty(value = "是否删除?0:未删除1:已删除")
  private Boolean isDel;
}
